package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 订单支付记录表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
@Data
@TableName("order_payment")
public class OrderPayment implements Serializable {

    private static final long serialVersionUID=1L;

    //@ApiModelProperty(value = "支付记录id，主键，自增")
      @TableId(value = "payment_id", type = IdType.AUTO)
    private Integer paymentId;

    //@ApiModelProperty(value = "订单id")
    private String orderId;

    //@ApiModelProperty(value = "支付方式")
    private String paymentMethod;

    //@ApiModelProperty(value = "支付金额")
    private Float paymentAmount;

    //@ApiModelProperty(value = "支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date paymentTime;

    //@ApiModelProperty(value = "支付状态")
    private String paymentStatus;

    //@ApiModelProperty(value = "支付宝订单编号")
    private String alipayOrderOn;


}
